package designs.models.command.macros;

import java.util.ArrayList;

public class MacroCommand implements Command {
	ArrayList<Command> commandList ;
	
	public MacroCommand(ArrayList<Command> commandList) {
		super();
		this.commandList = commandList;
	}

	@Override
	public void execute() {
		for (int k = 0; k < commandList.size(); k++) {
			Command command = commandList.get(k);
			command.execute();
		}

	}

}
